package BookTest;

public class B3StudentGradesTest {
    public static void main(String[] args) {
        System.out.println("学号   "+"姓名   "+"语文成绩   "+"数学成绩   "+"英语成绩   "+"平均成绩");
        System.out.println("—————————————————————————————————————————————————————————————————————");
        B3StudentGrades a = new B3StudentGrades(1,"张三",91.5,98.0,89.0);
        double average = a.averageScore();
        System.out.println(a.getStudentID()+"      "+a.getName()+"     "+a.getChineseGrades()+"     "
                +a.getMathGrades()+"      "+a.getEnglishGrades()+"      "+average);

        B3StudentGrades b = new B3StudentGrades(2,"李四",96.0,98.5,93.0);
        double average1 = b.averageScore();
        System.out.println(b.getStudentID()+"      "+b.getName()+"     "+b.getChineseGrades()+"     "
                +b.getMathGrades()+"      "+b.getEnglishGrades()+"      "+average1);

    }
}
